<div id="div_tpltb4_table">
    <table id="example" class="cell-border hover compact  " cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>ID</th>
                <th>姓名</th>
                <th>性别</th>
                <th>生日</th>
                <th>操作</th>
               
            </tr>
        </thead>
      
        <tbody>
<#list rhs["dataList"]?sort_by("sortNob") as x>
	    	<tr>
		        <td class=nob >
		            ${x_index+1} <span style="display:none;">${x.name?if_exists},${x.sex?if_exists}</span>
		        </td>
		        <td>
		            <input type="text" value='${x.name?if_exists}' onchange="javascript:action_tpltb4('update.do','column=name&id=${x.id?if_exists}&columnValue='+escape(encodeURIComponent(this.value)))" />
		        </td>
		        <td>
		            <select style="WIDTH: 50px" onchange="javascript:action_tpltb4('update.do','column=sex&id=${x.id?if_exists}&columnValue='+this.value)">
		                <option value="${x.sex?if_exists}">${x.sex?if_exists}</option>
		                <option value="男">男</option>
		                <option value="女">女</option>
		            <select>
		        </td>
		        
		        <td >
		            <input type="text" value='${x.birthDate?if_exists}' onchange="javascript:action_tpltb4('update.do','column=birthDate&id=${x.id?if_exists}&columnValue='+this.value)" onClick="WdatePicker()"/>
		        </td>
		        <td >
					<div class="btn-group btn-group-xs">
					    <button onclick="javascript:action_tpltb4('delete.do','id=${x.id}');" type="button" class="btn btn-default">删</button>
					    <#if (rhs["dataList"]?size!=1)>
						    <#if (x_index?string=="0")> 
								<button type="button" class="btn btn-default"  onclick="javascript:action_tpltb4('change_rank.do','id_from=${x.id?if_exists}&id_to=${rhs["dataList"]?sort_by("sortNob")[x_index+1].id}')"   title=下移>下</button>
							<#else>
								<button  type="button" class="btn btn-default" onclick="javascript:action_tpltb4('change_rank.do','id_from=${x.id?if_exists}&id_to=${rhs["dataList"]?sort_by("sortNob")[x_index-1].id}')"  title=上移>上</button>
						    	<#if x_has_next>
					 	 			<button  type="button" class="btn btn-default" onclick="javascript:action_tpltb4('change_rank.do','id_from=${x.id?if_exists}&id_to=${rhs["dataList"]?sort_by("sortNob")[x_index+1].id}')"   title=下移>下</button>
						        </#if>
						 	</#if> 				
					    </#if> 
					</div>              
		        </td>
 		        <#--搜索使用-->
		    </tr>
</#list>    
        </tbody>
    </table>

</div>

<span id="div_action_result" style="display:none">${rhs["info"]?if_exists}</span>
